const mysql = require('promise-mysql');

const pool = mysql.createPool({
    host: '139.9.83.220',
    user: 'root',
    port: 3306,
    debug: false,
    password: 'amw4501009',
    database: 'zspider',
    charset: 'utf8mb4_unicode_ci'
});


async function getConn() {
    let dbPool = await pool
    return dbPool.getConnection()
}
module.exports = { getConn }